/**
 * Copyright (c) 2016-2019 九点科技 All rights reserved.
 *
 * http://www.9dyun.cn
 *
 * 版权所有，侵权必究！
 */
package com.dian.modules.sale.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dian.common.entity.BaseEntity;
import com.dian.common.validator.group.AddGroup;
import com.dian.common.validator.group.UpdateGroup;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 预订单明细
 *
 * @author xiaolai
 * @email xiaolai@9dyun.cn
 * @date 2019-06-10 23:04:30
 */
@Data
@ExcelTarget("probLineEntity")
public class ProbLineExportVO  {
	private static final long serialVersionUID = 1L;


    /**
	 * 商品编码;来源于base_goods.goods_code
	 */

    @Excel(name = "商品编码",width = 30)
    private String goodsCode;
    /**
	 * 商品名称;来源于base_goods.name
	 */
    @Excel(name = "商品名称",width = 80)
    private String goodsName;


    /**
	 * 商品型号;来源于base_goods.goods_model
	 */
    @Excel(name = "商品型号")
    private String goodsModel;


    /**
	 * 商品规格;来源于base_goods.goods_space
	 */
    @Excel(name = "商品规格")
    private String goodsSpec;


    /**
     * 商品数量
     */
    @Excel(name = "基本数量")
    private BigDecimal baseNum;



    /**
     * 基本单位;来源于base_uom.name_name
     */
    @Excel(name = "基本单位")
    private String baseUomName;


    /**
     *库存数量
     */
    @Excel(name = "库存数量")
    @NotNull(message="库存数量不能为空", groups = {AddGroup.class,UpdateGroup.class})
    private BigDecimal qtyNum;




    /**
     * 库存单位;来源于base_uom.name_name
     */
    @Excel(name = "库存单位")
    private String qtyUomName;


    /**
     * 商品数量
     */
    @Excel(name = "辅助数量")
    private BigDecimal auxNum;





    /**
     * 辅助单位;来源于base_uom.name_name
     */
    @Excel(name = "辅助单位")
    private String auxUomName;


    /**
	 * 商品单价
	 */
    @Excel(name = "商品单价")
    private BigDecimal goodsPrice;



    /**
	 * 商品挂牌价
	 */
    @Excel(name = "商品挂牌价")
    private BigDecimal goodsListPrice;


    /**
	 * 商品金额
	 */
    @Excel(name = "商品金额")
    private BigDecimal goodsAmount;



    /**
	 * 商品折扣
	 */
    @Excel(name = "商品折扣")
    private BigDecimal goodsDiscount;


    /**
	 * 件换算
	 */
    @Excel(name = "件换算")
    private BigDecimal converUnit1;
    /**
	 * 片换算
	 */
    @Excel(name = "片换算")
    private BigDecimal converUnit2;
}
